package com.example.jvm.mycalss;

/**
 * @author jl
 * @since 2021/6/6 20:30
 */
public class MyClassA {
    private static MyClassA myClassA = new MyClassA();
    private static int a = 0;
    private static int b;

    private MyClassA() {
        a++;
        b++;
        //    System.out.println("a=" + a + " ,b=" + b);
    }

    public static MyClassA getInstance() {
        return myClassA;
    }

    public int getA() {
        return a;
    }

    public int getB() {
        return b;
    }
}
